package com.qcby.llmtchstd.dao;

import com.qcby.llmtchstd.common.ResponseResult;
import com.qcby.llmtchstd.entity.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface StudentDao {
    Integer count();
    List<Student> page(Integer offset, Integer pageSize);
    int add(Student student);
    List<Student> search(Student student);
    int update(Student student);
    int delete(Integer id);
    Student edit(Integer id);
    Integer serCount(Student student);
    int phone(String phone);
    int sno(String sno);
    int phoneUp(Student student);
    int snoUp(Student student);
    Integer countById(Integer id);
    List<Student> pageById(Student student);
    List<Student> searchById(Student student);
    Integer serCountById(Student student);
    ResponseResult getStudentDetails(Integer id);
}
